package com.chen.service;
/*
 *@description:描述
 *@author:陈琰
 *@time：2021/9/20  19:27
 */

import com.chen.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {
    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(int id);

    //更新一本书
    int updateBook(Books books);

    //查询一本书
    Books queryBookById(int id);

    //查询全部书
    List<Books> queryAllBook();

    //查询一本书
    Books queryBookByName(String bookName);
}
